﻿

using System;
using System.IO;
using System.Collections.Generic;

using WCFModel;
using System.ServiceModel;


namespace WCFContract
{
    /// <summary>
    /// MP3操作 接口
    /// </summary>
    [ServiceContract]
    public interface IMP3Opeator
    {
        /// <summary>
        /// 获取歌曲列表
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        IList<Music> GetMusicList();

        /// <summary>
        /// 获取单首歌曲数据流
        /// </summary>
        /// <param name="name">歌曲名称</param>
        /// <returns></returns>
        [OperationContract]
        [FaultContract(typeof(FileNotFoundException))]
        Stream GetMusicSream(string name);
    }
}
